
package com.baichang.taoshunda.service.impl;

import com.baichang.framework.excelption.ServiceException;
import com.baichang.framework.model.Page;
import com.baichang.framework.utils.ConfigurationHandle;
import com.baichang.framework.utils.DateUtil;
import com.baichang.framework.utils.LogUtils;
import com.baichang.taoshunda.dao.*;
import com.baichang.taoshunda.entity.*;
import com.baichang.taoshunda.entity.em.CompanyBalanceState;
import com.baichang.taoshunda.service.*;
import com.baichang.taoshunda.utils.ExportExcelUtils;
import org.apache.commons.collections.map.HashedMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class RedPackageServiceImpl implements RedPackageService {
    @Autowired
    RedPackageDao redPackageDao;

    /**
     * 用户邀请商家产生红包记录列表  busscashQuery
     */
    @Override
    public Page<Map<String, Object>> redPackageQuery(int nowPage, int pageSize, String bussName, String userName, int status) throws ServiceException {
        return redPackageDao.redPackageQuery(nowPage,pageSize,bussName,userName,status);
    }

    @Override
    public boolean deleteRedPackage(int id) throws ServiceException {
        return redPackageDao.deleteRedPackage(id);
    }
}
